  <?php echo form_tag_for($listCountersForm,$listCountersForm->getUrl())?>
  <?php echo $listCountersForm->renderGlobalErrors()?>
  <?php echo $listCountersForm['iden']?>
  <?php echo $listCountersForm['_csrf_token']?>
  <table>
    <tr>
      <th class="field">
        <?php echo $listCountersForm['code']->renderLabel()?>
      </th>
      <td class="field">
        <?php echo $listCountersForm['code']->renderError()?>
        <?php echo $listCountersForm['code']?>
      </td>
      <th class="field">
        <?php echo $listCountersForm['name']->renderLabel()?>
      </th>
      <td class="field">
        <?php echo $listCountersForm['name']->renderError()?>
        <?php echo $listCountersForm['name']?>
      </td>
      <th class="field">
        <?php echo $listCountersForm['location']->renderLabel()?>
      </th>
      <td class="field">
        <?php echo $listCountersForm['location']->renderError()?>
        <?php echo $listCountersForm['location']?>
      </td>
    </tr>
    <tr>
      <td class="form_buttons" colspan="6">
        <input type="submit" value="Save"/>
        <?php if(! $listCountersForm->isNew()):?>
          | 
          <?php 
            echo 
              button_to(
                'Reset',
                'counters/edit?iden='.$listCountersForm->getObject()->getIden()
              );
          ?>
          | 
          <?php 
            echo 
              button_to(
                'Delete',
                $listCountersForm->getDeleteUrl(),
                array(
                  'confirm'=>'Are you sure to delete, '.$listCountersForm->getObject()->getName(),
                )
              );
          ?>
        <?php endif;?>
        | 
        <?php 
          echo 
            button_to(
              'Cancel',
              'counters/index'
            );
        ?>
      </td>
    </tr>
  </table>
</form>